import axios from '@/libs/api.request'

// 年审基数
export class YearReviewBaseAmountApi {
  // 根据条件获取年审基数
  static getList (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 批量提交
  static batchSubmit (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/BatchSubmit',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 批量通过
  static batchPass (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/BatchPass',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 批量退回
  static batchBack (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/BatchBack',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据年审基数批量调基
  static batchAdjustment (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/BatchAdjustment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除年审基数
  static delete (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 上传附件
  static upload (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/Upload',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入
  static import (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/Import',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出模板
  static exportTemplate (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/ExportTemplate',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 导出错误数据附件
  static exportErrorFile (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/ExportErrorFile',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取公司
  static getCompanyList (params) {
    return axios.request({
      url: '/YearReviewBaseAmount/GetCompanyList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
